/*
 * converter uses output parttern tokens to generate the final name
 *
 * read each token from output parttern tokens,
 * then match these enum: const, letter, word, x, digit and number
 * get their value and generate the final name
 */
#ifndef _CONVERT_H
#define _CONVERT_H
#include <vector>
#include <string>
#include <sstream>
#include <iomanip>
#include "./parse.h"
#include "./token.h"
class converter {
private:
    std::vector<variable> variables;
    std::vector<token> tokens;
    std::string finalname;
    std::string match_var(token tk);
public:
    converter(std::vector<variable> variables, std::vector<token> tokens);
    void convert();
    std::string get_finalname();
};
std::string convert(std::vector<variable> variables, std::vector<token> tokens);
#endif
